Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Update to AutoPVT functionality #18

Merged
merged 6 commits into from
Jul 25, 2019

Conversation

FelixJirka
Copy link
Contributor

Hi,

this is a further extension to the original PR 4.

It adds the possibility to choose between implicit updates from the buffer when accessing stale data and an externally driven (cyclic) update.
I tried to make it as unobtrusive as possible by adding another version of setAutoPVT with a third parameter.
The changes include also an assumeAutoPVT in case the GPS is connected via to a Rx line of the MCU only.

I'm running this on an ESP32 device (M5Stack Fire + ublox M8N ) where most of the data is used on a different core and the implicit calls to checkUblox are causing disturbance of other tasks.

Please let me know what you think of this!

…_Arduino_Library

use .h / .cpp from local disk

# Conflicts:
#	README.md
#	src/SparkFun_Ublox_Arduino_Library.cpp
#	src/SparkFun_Ublox_Arduino_Library.h
…e and disable the implicit update of data that happened previously even with autoPVT set to true

Changes:
- add implicitUpdate parameter to setAutoPVT to control when the actual processing of the data happens
- add assumeAutoPVT method for use-cases where the receiver can't be controlled (no UART Tx line from MCU to receiver)
- change getPVT to respect autoPVTImplicitUpdate==false
- remove "virtual" from getPVT as it is not required anymore after the above changes
@nseidle
Copy link
Member

nseidle commented Jun 25, 2019

Looks good and I welcome the PR. Can you add an example demoing the new functionality?

Thanks for writing the extra functions so-as to not break anyone's older code (yay reverse compatibility).

@nseidle
Copy link
Member

nseidle commented Jun 25, 2019

And please add any new functions to the keywords.txt so they'll be highlighted.

@FelixJirka
Copy link
Contributor Author

Hi Nathan,
sure, I'll try to do so by end of next week.

add Example16_AutoPVT_ExplicitUpdate.ino -> show how to use explicit updates by calling checkUblox
add Example17_AssumeAutoPVTviaUart.ino -> show how to use a Rx only UART connection to receive PVT message
@FelixJirka
Copy link
Contributor Author

Hi Nathan,
I did the updates.
Could you please have a look and let me know what you think?

@nseidle
Copy link
Member

nseidle commented Jul 25, 2019

Looks great. Examples test ok. Thanks!

@nseidle nseidle merged commit e2ec849 into sparkfun:master Jul 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants